package com.example.demo.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.example.demo.VO.PermissionsVO;
import com.example.demo.dao.Role_permissionsMapper;
import com.example.demo.entity.Role_permissions;
import com.example.demo.service.IRole_permissionsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hanfei
 * @since 2020-04-08
 */
@Service
public class Role_permissionsServiceImpl extends ServiceImpl<Role_permissionsMapper, Role_permissions> implements IRole_permissionsService {
        @Resource
        public Role_permissionsMapper mapper;

        public Role_permissionsMapper getMapper() {
        return mapper;
        }

        public void setMapper(Role_permissionsMapper mapper) {
        this.mapper = mapper;
        }
public int deletByRoleid(String roleid){
                return mapper.deletByRoleid(roleid);
}
public List<PermissionsVO> findByRoleid(String roleid){
                return mapper.findByRoleid(roleid);
}

        }
